<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
    

    

    



    <meta charset="utf-8">
    
    
    
    
    <title>Array的属性和方法 - js标准库之旅(一) | 衣沾不足惜</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="技巧,手册,数组,标准库,JS">
    <meta name="description" content="前言&amp;emsp;&amp;emsp;一门编程语言 ~= 语法 + 标准库 + 开发范式。&amp;emsp;&amp;emsp;一个程序 ~= 数据结构 + 算法。 &amp;emsp;&amp;emsp;标准库，在js中即为标准的内置对象，这些对象或对象的原型上内置了很多方法和属性，这些写好了的东西，我们也常常称之为“api”。   &amp;emsp;&amp;emsp;如果掌握标准库中的api，并能灵活运用，就像 “熟读唐诗三百首，不会做诗也会吟">
<meta name="keywords" content="技巧,手册,数组,标准库,JS">
<meta property="og:type" content="article">
<meta property="og:title" content="Array的属性和方法 - js标准库之旅(一)">
<meta property="og:url" content="https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/index.html">
<meta property="og:site_name" content="衣沾不足惜">
<meta property="og:description" content="前言&amp;emsp;&amp;emsp;一门编程语言 ~= 语法 + 标准库 + 开发范式。&amp;emsp;&amp;emsp;一个程序 ~= 数据结构 + 算法。 &amp;emsp;&amp;emsp;标准库，在js中即为标准的内置对象，这些对象或对象的原型上内置了很多方法和属性，这些写好了的东西，我们也常常称之为“api”。   &amp;emsp;&amp;emsp;如果掌握标准库中的api，并能灵活运用，就像 “熟读唐诗三百首，不会做诗也会吟">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2019-04-28T09:44:15.047Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Array的属性和方法 - js标准库之旅(一)">
<meta name="twitter:description" content="前言&amp;emsp;&amp;emsp;一门编程语言 ~= 语法 + 标准库 + 开发范式。&amp;emsp;&amp;emsp;一个程序 ~= 数据结构 + 算法。 &amp;emsp;&amp;emsp;标准库，在js中即为标准的内置对象，这些对象或对象的原型上内置了很多方法和属性，这些写好了的东西，我们也常常称之为“api”。   &amp;emsp;&amp;emsp;如果掌握标准库中的api，并能灵活运用，就像 “熟读唐诗三百首，不会做诗也会吟">
    
        <link rel="alternate" type="application/atom+xml" title="衣沾不足惜" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=4.2801">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu">
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">衣沾不足惜</h5>
          <a href="mailto:javascript.h@qq.com" title="javascript.h@qq.com" class="mail">javascript.h@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/">
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives">
                <i class="icon icon-lg icon-archives"></i>
                归档
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories">
                <i class="icon icon-lg icon-tasks"></i>
                分类
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags">
                <i class="icon icon-lg icon-tags"></i>
                标签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/javascripth" target="_blank">
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://www.zhihu.com/people/javascript.h" target="_blank">
                <i class="icon icon-lg icon-paper-plane"></i>
                知乎
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Array的属性和方法 - js标准库之旅(一)</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Array的属性和方法 - js标准库之旅(一)</h1>
        <h5 class="subtitle">
            
                <time datetime="2019-04-27T12:49:42.000Z" itemprop="datePublished" class="page-time">
  2019-04-27
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/JavaScript/">JavaScript</a></li></ul>

            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
<aside class="post-widget">
    <nav class="post-toc-wrap post-toc-shrink" id="post-toc">
        <h4>目录</h4>
        <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#前言"><span class="post-toc-number">1.</span> <span class="post-toc-text">前言</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#转换为数组：-Array-from"><span class="post-toc-number">2.</span> <span class="post-toc-text">转换为数组： Array.from</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#过滤数组：filter"><span class="post-toc-number">3.</span> <span class="post-toc-text">过滤数组：filter</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#数组中是否存在某元素-includes"><span class="post-toc-number">4.</span> <span class="post-toc-text">数组中是否存在某元素 includes</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#扁平化嵌套的数组-flat"><span class="post-toc-number">5.</span> <span class="post-toc-text">扁平化嵌套的数组 flat</span></a></li></ol>
    </nav>
</aside>

<article id="post-Array的属性和方法 -js标准库之旅(一)" class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Array的属性和方法 - js标准库之旅(一)</h1>
        <div class="post-meta">
            <time class="post-time" title="2019-04-27 20:49:42" datetime="2019-04-27T12:49:42.000Z" itemprop="datePublished">2019-04-27</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/JavaScript/">JavaScript</a></li></ul>



            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style="display:none">
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>&emsp;&emsp;一门编程语言 ~= 语法 + 标准库 + 开发范式。<br>&emsp;&emsp;一个程序 ~= 数据结构 + 算法。</p>
<p>&emsp;&emsp;标准库，在js中即为标准的内置对象，这些对象或对象的原型上内置了很多方法和属性，这些写好了的东西，我们也常常称之为“api”。  </p>
<p>&emsp;&emsp;如果掌握标准库中的api，并能灵活运用，就像 <code>“熟读唐诗三百首，不会做诗也会吟”</code> 。可以不再自己手动实现、依赖第三方插件，能为开发节省大量的时间。<br><a id="more"></a></p>
<h2 id="转换为数组：-Array-from"><a href="#转换为数组：-Array-from" class="headerlink" title="转换为数组： Array.from"></a>转换为数组： Array.from</h2><p><code>Array.from</code>将伪数组或可迭代对象转换为一个新的数组</p>
<ul>
<li>第一个参数是待转换的伪数组或可迭代对象,第二个参数是一个函数，相当于内置的map函数,第三参数是map函数中this指向。</li>
<li>伪数组：<code>Nodelist</code> 、<code>arguments</code></li>
<li>可迭代对象：可以理解为任何可以被循环的对象，例如数组、Set，Map，字符串也可以被迭代。</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> arrNodeList = <span class="built_in">Array</span>.from(<span class="built_in">document</span>.querySelectorAll(<span class="string">'div'</span>));</span><br><span class="line"><span class="built_in">console</span>.log(arrNodeList);<span class="comment">// dom对象组成的数组</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">let</span> arrStr =  <span class="built_in">Array</span>.from(<span class="string">'我是字符串啊'</span>);</span><br><span class="line"><span class="built_in">console</span>.log(arrStr);</span><br><span class="line"><span class="comment">//["我", "是", "字", "符", "串", "啊"]</span></span><br></pre></td></tr></table></figure>
<p>eg：在函数中,将所有传入的参数进行平方计算,且过滤掉非Number类型数据,返回计算后的值组成的数组。第二个参数用于迭代的map函数需要 <code>return</code>。<br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">fun</span>(<span class="params"></span>)</span>&#123;</span><br><span class="line">    <span class="keyword">let</span> arrAllArg = <span class="built_in">Array</span>.from(<span class="built_in">arguments</span>,<span class="function"><span class="keyword">function</span>(<span class="params">item,index</span>)</span>&#123;</span><br><span class="line">        <span class="keyword">if</span>(!<span class="built_in">isNaN</span>(item))&#123;</span><br><span class="line">            <span class="keyword">return</span> item**<span class="number">2</span>;</span><br><span class="line">        &#125;<span class="keyword">else</span>&#123;</span><br><span class="line">             <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;);</span><br><span class="line">     <span class="built_in">console</span>.log(arrAllArg);</span><br><span class="line">    <span class="comment">// arguments不能使用数组方法。转换后arrArg是数组了</span></span><br><span class="line">   <span class="keyword">let</span> arrArg =  arrAllArg.filter(<span class="function"><span class="params">item</span> =&gt;</span> <span class="built_in">Boolean</span>(item)==<span class="literal">true</span>)</span><br><span class="line">    <span class="built_in">console</span>.log(arrArg);</span><br><span class="line">&#125;</span><br><span class="line">fun(<span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span>,<span class="number">6</span>,<span class="string">'a'</span>)</span><br><span class="line"><span class="comment">//[1, 4, 9, 36,"a"]</span></span><br><span class="line"><span class="comment">//[1, 4, 9, 36]</span></span><br></pre></td></tr></table></figure></p>
<h2 id="过滤数组：filter"><a href="#过滤数组：filter" class="headerlink" title="过滤数组：filter"></a>过滤数组：filter</h2><p>过滤掉数组中不满足条件的元素，返回剩下的元素组成的新数组。不会改变原数组。</p>
<ul>
<li>参数是回调函数,返回false则过滤掉该元素</li>
<li>第二个参数为回调函数中this的指向</li>
<li>回调函数三个参数分别表示 当前迭代的元素、索引值、调用filter的原数组。</li>
</ul>
<p>eg：返回位于Asia，且area大于一百万平方千米的国家的数据<br><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> arrData = [&#123;</span><br><span class="line">    <span class="string">"continent"</span>: <span class="string">"Asia"</span>,</span><br><span class="line">    <span class="string">"area"</span>: <span class="number">9634057</span>,</span><br><span class="line">    <span class="string">"cname"</span>: <span class="string">"中国"</span>,</span><br><span class="line">    <span class="string">"phoneCode"</span>: <span class="string">"86"</span>,  </span><br><span class="line">&#125;,&#123;</span><br><span class="line">    <span class="string">"continent"</span>: <span class="string">"Asia"</span>,</span><br><span class="line">    <span class="string">"area"</span>: <span class="number">647500</span>,</span><br><span class="line">    <span class="string">"cname"</span>: <span class="string">"阿富汗"</span>,</span><br><span class="line">    <span class="string">"phoneCode"</span>: <span class="string">"93"</span>,</span><br><span class="line">&#125;,&#123;</span><br><span class="line">    <span class="string">"continent"</span>: <span class="string">"North America"</span>,</span><br><span class="line">    <span class="string">"area"</span>: <span class="string">"9379091"</span>,</span><br><span class="line">    <span class="string">"cname"</span>: <span class="string">"美国"</span>,</span><br><span class="line">    <span class="string">"phoneCode"</span>: <span class="string">"1"</span>, </span><br><span class="line">&#125;];</span><br><span class="line"><span class="keyword">let</span> arrCountryData = arrData.filter(<span class="function"><span class="keyword">function</span>(<span class="params">item,index</span>)</span>&#123;</span><br><span class="line">    <span class="keyword">return</span> item[<span class="string">'continent'</span>]==<span class="string">'Asia'</span> &amp;&amp; item[<span class="string">'area'</span>]&gt;<span class="number">1000000</span>;</span><br><span class="line">&#125;);</span><br><span class="line"><span class="built_in">console</span>.log(arrCountryData);</span><br><span class="line"><span class="comment">//[&#123;"continent": "Asia","area": 9634057,  "cname": "中国", "phoneCode": "86"&#125;]</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<h2 id="数组中是否存在某元素-includes"><a href="#数组中是否存在某元素-includes" class="headerlink" title="数组中是否存在某元素 includes"></a>数组中是否存在某元素 includes</h2><h2 id="扁平化嵌套的数组-flat"><a href="#扁平化嵌套的数组-flat" class="headerlink" title="扁平化嵌套的数组 flat"></a>扁平化嵌套的数组 flat</h2><table>
<thead>
<tr>
<th style="text-align:center">一个普通标题</th>
<th style="text-align:center">一个普通标题</th>
<th style="text-align:center">一个普通标题</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">短文本</td>
<td style="text-align:center">中等文本</td>
<td style="text-align:center">稍微长一点的文本</td>
</tr>
<tr>
<td style="text-align:center">稍微长一点的文本</td>
<td style="text-align:center">短文本</td>
<td style="text-align:center">中等文本</td>
</tr>
</tbody>
</table>

        </div>

        <blockquote class="post-copyright">
    
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2019-04-28T09:44:15.047Z" itemprop="dateUpdated">2019-04-28 17:44:15</time>
</span><br>


        
    </div>
    
    <footer>
        <a href="https://github.com/javascripth">
            <img src="/img/avatar.jpg" alt="衣沾不足惜">
            衣沾不足惜
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/JS/">JS</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/手册/">手册</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/技巧/">技巧</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/数组/">数组</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/标准库/">标准库</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/&title=《Array的属性和方法 - js标准库之旅(一)》 — 衣沾不足惜&pic=https://github.com/javascripth/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/&title=《Array的属性和方法 - js标准库之旅(一)》 — 衣沾不足惜&source=前言&emsp;&emsp;一门编程语言 ~= 语法 + 标准库 + 开发范式。&emsp;&emsp;一个程序 ~= 数据结构 + 算法。
&emsp;..." data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Array的属性和方法 - js标准库之旅(一)》 — 衣沾不足惜&url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/&via=https://github.com/javascripth" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between flex-row-reverse">
  

  
  <div class="waves-block waves-effect next">
    <a href="/2019/04/25/two/" id="post-next" class="post-nav-link">
      <div class="tips">下一篇 <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
      <h4 class="title">two</h4>
    </a>
  </div>
  
</nav>


    


<section class="comments" id="comments">
    <div id="disqus_thread"></div>
    <script>
    var disqus_shortname = 'true';
    lazyScripts.push('//' + disqus_shortname + '.disqus.com/embed.js')
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>



















</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        一分钱也是爱~
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/img/wechat.jpg" alt="打赏二维码">
        </div>
        
        <label class="reward-toggle">
            <input id="rewardToggle" type="checkbox" class="reward-toggle-check" data-wechat="/img/wechat.jpg" data-alipay="/img/alipay.jpg">
            <div class="reward-toggle-ctrol">
                <span class="reward-toggle-item wechat">微信</span>
                <span class="reward-toggle-label"></span>
                <span class="reward-toggle-item alipay">支付宝</span>
            </div>
        </label>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style="display:none">
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style="display:none">
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>博客内容遵循 <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">知识共享 署名 - 非商业性 - 相同方式共享 4.0 国际协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p><span>衣沾不足惜 &copy; 2017 - 2019</span>
            <span>
                
                Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
            </span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/&title=《Array的属性和方法 - js标准库之旅(一)》 — 衣沾不足惜&pic=https://github.com/javascripth/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/&title=《Array的属性和方法 - js标准库之旅(一)》 — 衣沾不足惜&source=前言&emsp;&emsp;一门编程语言 ~= 语法 + 标准库 + 开发范式。&emsp;&emsp;一个程序 ~= 数据结构 + 算法。
&emsp;..." data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Array的属性和方法 - js标准库之旅(一)》 — 衣沾不足惜&url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/&via=https://github.com/javascripth" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://github.com/javascripth/2019/04/27/Array的属性和方法 -js标准库之旅(一)/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };


</script>

<script src="/js/main.min.js?v=4.2801"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=4.2801" async></script>






<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = '';
            clearTimeout(titleTime);
        } else {
            document.title = '';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
